package com.vrp3d.domain.dto.booth;

import com.vrp3d.common.consts.CommonConst;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 新增/修改音频
 *
 * @author vrp3d
 */
@Data
public class BoothAudioDTO implements Serializable {

    private static final long serialVersionUID = -1914872868680614335L;

    @ApiModelProperty(value = "展厅id", required = true, position = 1)
    @NotNull(message = "展厅id不能为空")
    @Range(min = 1, message = "展厅id值最小为1")
    private Integer showroomId;

    @ApiModelProperty(value = "展位在展厅中的位置", required = true, position = 2)
    @NotNull(message = "展位在展厅中的位置不能为空")
    @Range(min = 1, max = CommonConst.NUMBER_OF_BOOTHS, message = "展位在展厅中的位置值不符合规范(1" + CommonConst.NUMBER_OF_BOOTHS + ")")
    private Integer boothOrder;

    @ApiModelProperty(value = "音频", required = true, position = 3)
    @NotBlank(message = "音频不能为空")
    private String audio;

}
